<?php


require ROOT_PATH.'/Helper/base_abstract.php';

abstract class admin_base_abstract extends base_abstract
{
    function msg($msg, $jumpurl='', $t = 3) {
       if ($jumpurl) {
            $jumpurl = htmlspecialchars($jumpurl);
            if (substr($jumpurl, 0, 4) != 'http') {
                if ($jumpurl{0} != '/') {
                    $jumpurl = '/'.$jumpurl;
                }
                $jumpurl = SITE_URL.$jumpurl;
            }
            $ifjump = "<META HTTP-EQUIV='Refresh' CONTENT='$t; URL=$jumpurl'>";
            $this->view->assign('jumpurl', $jumpurl);
            $this->view->assign('ifjump', $ifjump);
        }

        $this->view->assign('msg', $msg);
        $this->view->display('admin/message.html');
        exit;
    }
}

?>